package com.efast.cafe.commponent.statemach.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.efast.cafe.commponent.statemach.bean.StateMachTaskHistory;
import com.efast.cafe.commponent.statemach.bean.StateMachTaskHistoryBean;
import com.efast.cafe.commponent.statemach.dao.PortalStateMachTaskHistoryDao;
import com.efast.cafe.commponent.statemach.service.IPortalStateMachTaskHistoryService;

@Service
@Transactional
public class PortalStateMachTaskHistoryServiceImpl implements IPortalStateMachTaskHistoryService {

	@Autowired
	private PortalStateMachTaskHistoryDao taskHistoryDao;

	@Override
	public void insertTaskHistory(StateMachTaskHistory taskHistory) {
		taskHistoryDao.insertTaskHistory(taskHistory);
	}

	@Override
	public List<StateMachTaskHistory> queryTaskHistoryByTaskId(Long taskId) {
		return taskHistoryDao.queryTaskHistoryByTaskId(taskId);
	}

	@Override
	public List<StateMachTaskHistoryBean> queryTaskHistoryBeanByTaskId(Long taskId) {
		return taskHistoryDao.queryTaskHistoryBeanByTaskId(taskId);
	}

}
